#!/usr/local/bin/node
var sys = require('sys');
var xml2json = require('../src/xml2json');
var file = 'test.xml';
xml2json.libxml('/usr/local/lib/libxmljs').file(function(json){
    sys.debug(sys.inspect(json, false, null));
    sys.debug('/event/type :: ' + json.event.type);
    sys.debug('/event/type[@name] :: ' + json.event.type['@attrs'].name);
}, file);
